package com.eight.paper.admin.service.impl;

import com.eight.common.utils.DateUtils;
import com.eight.paper.admin.domain.ExamPaperExaminee;
import com.eight.paper.admin.domain.model.ExamPaperExamineeResponse;
import com.eight.paper.admin.mapper.ExamPaperExamineeMapper;
import com.eight.paper.admin.service.IExamPaperExamineeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 考生答卷总Service业务层处理
 * 
 * @author eight
 * @date 2023-10-31
 */
@Service
public class ExamPaperExamineeServiceImpl implements IExamPaperExamineeService 
{
    @Autowired
    private ExamPaperExamineeMapper examPaperExamineeMapper;

    /**
     * 查询考生答卷总列表
     * 
     * @param examPaperExaminee 考生答卷总
     * @return 考生答卷总
     */
    @Override
    public List<ExamPaperExamineeResponse> selectExamPaperExamineeList(ExamPaperExaminee examPaperExaminee)
    {
        return examPaperExamineeMapper.selectExamPaperExamineeList(examPaperExaminee);
    }


    /**
     * 查询单个考生答卷列表，支持过滤
     * @param userId
     * @param paperName
     * @param paperId
     * @return
     */
    @Override
    public List<ExamPaperExamineeResponse> selectExamPaperExamineeRecord(Long userId, String paperName, String paperId) {
        return examPaperExamineeMapper.selectExamPaperExamineeRecord(userId,paperName,paperId);
    }
}
